package com.hnkywl.sts.action.tjbb;

import com.hnkywl.sts.entity.sys.Yg;
import com.hnkywl.sts.service.sys.YgService;
import com.hnkywl.sts.service.tjbb.LjsjllService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;

/**
 * 路径实际利率
 * Created with IntelliJ IDEA.
 * User: xx
 * Date: 13-6-16
 * Time: 下午10:17
 * To change this template use File | Settings | File Templates.
 */
@Namespace("/tjbb/ljsjll")
public class LjsjllAction extends SimpleActionSupport {

    private Yg yg;
    private LjsjllService ljsjllService;

    private Long ljid; //路径ID
    private String timeFrom; //时间from
    private String timeTo; //时间to
    /**
     * 查询
     * @return
     */
    @Action("cx")
    public String cx() {
        yg = YgService.getCurrentYg();
        return SUCCESS;
    }

    /**
     * 路径利率列表
     */
    @Action("ljllList")
    public void ljllList() {
        this.renderJson(this.ljsjllService.findAllLjll(ljid, timeFrom, timeTo));
    }



    public Yg getYg() {
        return yg;
    }

    public void setYg(Yg yg) {
        this.yg = yg;
    }

    public LjsjllService getLjsjllService() {
        return ljsjllService;
    }

    public void setLjsjllService(LjsjllService ljsjllService) {
        this.ljsjllService = ljsjllService;
    }

    public Long getLjid() {
        return ljid;
    }

    public void setLjid(Long ljid) {
        this.ljid = ljid;
    }

    public String getTimeFrom() {
        return timeFrom;
    }

    public void setTimeFrom(String timeFrom) {
        this.timeFrom = timeFrom;
    }

    public String getTimeTo() {
        return timeTo;
    }

    public void setTimeTo(String timeTo) {
        this.timeTo = timeTo;
    }
}
